﻿#ifndef CUSTOMPROGRESS_H
#define CUSTOMPROGRESS_H

#include <QDialog>

namespace Ui {
    class CustomProgress;
}

class CustomProgress : public QDialog
{
    Q_OBJECT

public:
    explicit CustomProgress(QWidget *parent = 0);
    ~CustomProgress();

    static CustomProgress *startAProgress(const QString &title);
    static void stopAProgress(CustomProgress *p);

public slots:
    void showInProgress();
    void finishProgress();

private:
    void closeEvent(QCloseEvent *e) override;

private:
    Ui::CustomProgress *ui;
    bool m_bFinished = false;
};

#endif // CUSTOMPROGRESS_H
